import request from '@/utils/request'

export function getEnableAdminsWithRole(params) {
    return request({
        url: 'admin/auth/getEnableAdminsWithRole',
        method: 'get',
        params
    })
}

export function swallowDetail(params) {
    return request({
        url: 'admin/treatment/swallow/detail',
        method: 'get',
        params
    })
}

export function swallowEvaluate(data) {
    return request({
        url: 'admin/treatment/swallow/swallowEvaluate',
        method: 'post',
        data
    })
}

export function pulmonaryDetail(params) {
    return request({
        url: 'admin/treatment/pulmonary/detail',
        method: 'get',
        params
    })
}

export function pulmonaryEvaluate(data) {
    return request({
        url: 'admin/treatment/pulmonary/pulmonaryEvaluate',
        method: 'post',
        data
    })
}

export function nerveDetail(params) {
    return request({
        url: 'admin/treatment/nerve/detail',
        method: 'get',
        params
    })
}

export function nerveEvaluate(data) {
    return request({
        url: 'admin/treatment/nerve/nerveEvaluate',
        method: 'post',
        data
    })
}

export function sportsDetail(params) {
    return request({
        url: 'admin/treatment/sports/detail',
        method: 'get',
        params
    })
}

export function sportsEvaluate(data) {
    return request({
        url: 'admin/treatment/sports/sportsEvaluate',
        method: 'post',
        data
    })
}

export function nerveDamageDetail(params) {
    return request({
        url: 'admin/treatment/nerveDamage/detail',
        method: 'get',
        params
    })
}

export function nerveDamageEvaluate(data) {
    return request({
        url: 'admin/treatment/nerveDamage/nerveDamageEvaluate',
        method: 'post',
        data
    })
}

export function nerveRecoveryDetail(params) {
    return request({
        url: 'admin/treatment/nerveRecovery/detail',
        method: 'get',
        params
    })
}

export function nerveRecoveryEvaluate(data) {
    return request({
        url: 'admin/treatment/nerveRecovery/nerveRecoveryEvaluate',
        method: 'post',
        data
    })
}

export function recoveryDetail(params) {
    return request({
        url: 'admin/treatment/recovery/detail',
        method: 'get',
        params
    })
}

export function recoveryRecord(data) {
    return request({
        url: 'admin/treatment/recovery/recoveryRecord',
        method: 'post',
        data
    })
}

export function perceiveDeafnessDetail(params) {
    return request({
        url: 'admin/treatment/perceiveDeafness/detail',
        method: 'get',
        params
    })
}

export function perceiveDeafnessEvaluate(data) {
    return request({
        url: 'admin/treatment/perceive/perceiveDeafnessEvaluate',
        method: 'post',
        data
    })
}

export function perceiveDegreeDetail(params) {
    return request({
        url: 'admin/treatment/perceiveDegree/detail',
        method: 'get',
        params
    })
}

export function perceiveDegreeEvaluate(data) {
    return request({
        url: 'admin/treatment/perceive/perceiveDegreeEvaluate',
        method: 'post',
        data
    })
}

export function athleticAbilityDetail(params) {
    return request({
        url: 'admin/treatment/athleticAbility/detail',
        method: 'get',
        params
    })
}

export function athleticAbilityEvaluate(data) {
    return request({
        url: 'admin/treatment/athleticAbility/athleticAbilityEvaluate',
        method: 'post',
        data
    })
}

export function listByReservationId(params) {
    return request({
        url: 'admin/estimate/listByReservationId',
        method: 'get',
        params
    })
}

export function historyList(params) {
    return request({
        url: 'admin/treatment/historyList',
        method: 'get',
        params
    })
}
